package com.jams.goodox.entity;

import com.jams.goodox.net.BaseEntity;

/**
 * Created by Jin on 2016/5/17.
 * Description
 */
public class PointOrderDetail extends BaseEntity {
    /**
     * acceptDateTime : 2016-02-03 17:35:34
     * contactAddress : 小星星
     * contactName : 金佛山
     * contactPhoneNumber : 18768187223
     * feedback : 1
     * orderCode : 2016020300006
     * orderItem : [{"bookedNumber":1,"name":"精美笔记本","productId":"5ed83dca-c8be-11e5-9677-00163e005381","requiredScore":10}]
     * orderStatus : 3
     * processDateTime : 2016-02-03 17:35:41
     * requiredTotalScore : 10
     * serviceName : 积分兑换
     * submitDateTime : 2016-02-03 17:35:21
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private String acceptDateTime;
        private String contactAddress;
        private String contactName;
        private String contactPhoneNumber;
        private String feedback;
        private String orderCode;
        private int orderStatus;
        private String processDateTime;
        private int requiredTotalScore;
        private String serviceName;
        private String submitDateTime;
        private int bookedNumber;
        private String name;
        private String productId;
        private int requiredScore;

        public int getBookedNumber() {
            return bookedNumber;
        }

        public void setBookedNumber(int bookedNumber) {
            this.bookedNumber = bookedNumber;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public int getRequiredScore() {
            return requiredScore;
        }

        public void setRequiredScore(int requiredScore) {
            this.requiredScore = requiredScore;
        }

        /**
         * bookedNumber : 1
         * name : 精美笔记本
         * productId : 5ed83dca-c8be-11e5-9677-00163e005381
         * requiredScore : 10
         */

        public String getStatusStr() {
            switch (orderStatus) {
                case 2:
                    return "已接收";
                case 3:
                    return "已处理";
                case 1:
                default:
                    return "未接收";
            }
        }

        public String getAcceptDateTime() {
            return acceptDateTime;
        }

        public void setAcceptDateTime(String acceptDateTime) {
            this.acceptDateTime = acceptDateTime;
        }

        public String getContactAddress() {
            return contactAddress;
        }

        public void setContactAddress(String contactAddress) {
            this.contactAddress = contactAddress;
        }

        public String getContactName() {
            return contactName;
        }

        public void setContactName(String contactName) {
            this.contactName = contactName;
        }

        public String getContactPhoneNumber() {
            return contactPhoneNumber;
        }

        public void setContactPhoneNumber(String contactPhoneNumber) {
            this.contactPhoneNumber = contactPhoneNumber;
        }

        public String getFeedback() {
            return feedback;
        }

        public void setFeedback(String feedback) {
            this.feedback = feedback;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public int getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(int orderStatus) {
            this.orderStatus = orderStatus;
        }

        public String getProcessDateTime() {
            return processDateTime;
        }

        public void setProcessDateTime(String processDateTime) {
            this.processDateTime = processDateTime;
        }

        public int getRequiredTotalScore() {
            return requiredTotalScore;
        }

        public void setRequiredTotalScore(int requiredTotalScore) {
            this.requiredTotalScore = requiredTotalScore;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getSubmitDateTime() {
            return submitDateTime;
        }

        public void setSubmitDateTime(String submitDateTime) {
            this.submitDateTime = submitDateTime;
        }
    }
}
